package OBJECT;

//宠物商店
public class Object02 {


    public static void main(String[] args) {

        Cat cat1 = new Cat();


        cat1.name = "蝴蝶";
        cat1.price = 23.1;
        cat1.color = "红色";
        cat1.master = new String[]{"小明","小红","小花"};

        System.out.println(cat1.name+"价格是"+cat1.price+"颜色是"+cat1.color+"主人是"+cat1.master[0]+"、"+cat1.master[1]+"、"+cat1.master[2]);

        Person p1 = new Person();
        System.out.println(p1.name+"年龄是"+p1.age+"性别是"+p1.sex+"是否通过考试"+p1.isPass);


    }

}


class  Cat{
//    以下的都是属性
    String name;
    double price;
    String color;
    String[] master;
}


//创还人的类

class  Person{
    String name;
    int age;
    String sex;
    boolean isPass;


}